package com.itheima.day9;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class lo {
    public static void main(String[] args) throws IOException {
/*                            这是换行输入
        FileOutputStream fos = new FileOutputStream("G:\\misao");
        fos.write(97);
        fos.write("\r\n".getBytes());
        fos.write(98);
        fos.write("\r\n".getBytes());*/

                               //这是输入
      /*  FileOutputStream fos = new FileOutputStream("G:\\misao");
        fos.write(97);
        fos.close();*/

                            //不覆盖原有内容来输入
/*        FileOutputStream fos = new FileOutputStream("G:\\misao",true);//
        fos.write(97);
        fos.write(97);
        fos.write(97);
        fos.close();*/

    }
}
